import 'babel-polyfill'
import Vue from 'vue'
import { all } from 'vue-client'
import AndroidApp from './AndroidApp'
require('./bootstrap/less/bootstrap.less')

// 安卓端登录入口

Vue.component('android-menu', (resolve) => { require(['./components/AndroidMenu'], resolve) })
all()

Object.assign(Vue.androidUtil, {
  // 设置为Android模式
  isAndroid: true
})

Vue.android = true
Vue.staticUrl = 'http://192.168.191.1:8081/SafeCheck/rs/'
// Vue.staticUrl = 'http://192.168.20.219:8081/RestWork/rs/'
// Vue.staticUrl = 'http://117.34.66.3:8080/cr/rs/'
// Vue.staticUrl = 'http://191.168.191.1:8082/'
// Vue.staticUrl = 'http://191.168.191.1:8081/hujiao/'
if (Vue.android) {
  Vue.url = Vue.staticUrl
  // 取数据的url android
  // Vue.dataUrl = 'http://192.168.90.129:8081/'
  Vue.dataUrl = 'http://192.168.191.1:8081/SafeCheck/'
  // pc上使用
  // Vue.dataUrl = ''
}
Vue.interval = 1 * 60 * 1000
Vue.nopic = 'file:///android_asset/nopic.png'
Vue.mapSetup = false
